package org.hzero.exam.domain.entity;

import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hzero.boot.platform.lov.annotation.LovValue;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 马旭阳
 * @date2019/8/5
 */
@ApiModel("订单头信息")
@ModifyAudit
@VersionAudit
@Table(name = "hodr_so_header")
public class HodrSoHeader extends AuditDomain {
    @Id
    @GeneratedValue
    private Long soHeaderId;
    @NotBlank
    @ApiModelProperty("订单编号")
    private String orderNumber;
    @NotNull
    @ApiModelProperty("公司ID")
    private Long companyId;
    @NotBlank
    @ApiModelProperty("订单日期")
    private String orderDate;
    @NotBlank
    @LovValue(lovCode = "HZERO.ORDER.STATUS.TEST")
    @ApiModelProperty("订单状态")
    private String orderStatus;
    @Transient
    private String orderStatusMeaning;
    @NotNull
    @ApiModelProperty("客户ID")
    private Long customerId;

    @Transient
    @ApiModelProperty("公司名称")
    private String companyName;

    @Transient
    @ApiModelProperty("客户名称")
    private String customerName;

    @Transient
    @ApiModelProperty("金额")
    private String sumMoney;

    public String getOrderStatusMeaning() {
        return orderStatusMeaning;
    }

    public void setOrderStatusMeaning(String orderStatusMeaning) {
        this.orderStatusMeaning = orderStatusMeaning;
    }

    public Long getSoHeaderId() {
        return soHeaderId;
    }

    public void setSoHeaderId(Long soHeaderId) {
        this.soHeaderId = soHeaderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getSumMoney() {
        return sumMoney;
    }

    public void setSumMoney(String sumMoney) {
        this.sumMoney = sumMoney;
    }
}
